package com.akk.action;

import com.akk.business.AvsCustomerBusiness;
import com.akk.module.avs.model.request.GoInAvsRequest;
import com.akk.utils.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/thmlfApi/avs/customer")
@Api("用户注册")
public class AvsCustomerAction {

    @Autowired
    private AvsCustomerBusiness avsCustomerBusiness;

    @RequestMapping(value = "/goinavs", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    @ApiOperation(value = "用户信息验证", notes = "用户信息验证")
    public RestResponse goInAvs(@RequestBody GoInAvsRequest request) throws Exception {
        return avsCustomerBusiness.goInAvs(request);
    }

    @RequestMapping(value = "/goinavs2", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    @ApiOperation(value = "用户信息验证", notes = "用户信息验证")
    public RestResponse goInAvs2(@RequestBody GoInAvsRequest request) throws Exception {
        return avsCustomerBusiness.goInAvs2(request);
    }
}
